package com.GameSpace.CoreAssets;


import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class ButtonAdapter extends BaseAdapter{
	
	View[] buttons;

	public ButtonAdapter(View[] buttons) {
		super();
		this.buttons = buttons;
	}
	
	public int getCount() {
		return buttons.length;
	}

	public Object getItem(int position) {
		return buttons[position];
	}

	public long getItemId(int position) {
		return buttons[position].getId();
	}

	public View getView(int position, View convertView, ViewGroup parent) {
		return buttons[position];
	}
	
}
